﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExampleClass6
{
    class Polygon
    {
        protected int width;
        protected int height;
        public Polygon(int a)
        {
            width = a;
        }
        public void setValues(int a, int b)
        {
            width = a;
            height = b;
        }
    }
    class Rectangle : Polygon
    {
        public Rectangle(int w,int h):base(w)
        {
            height=h;
        }
    public int area()
    {
        return(width*height);
    }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Rectangle rect = new Rectangle(8, 9);
            Console.WriteLine("recta:{0}", rect.area());
            return;
        }
    }
}
